All Packages Class Hierarchy This Package Previous Next Index
Class java.naming.directory.ModificationEnumeration
java.lang.Object
|
+----java.naming.directory.ModificationEnumeration
- public class ModificationEnumeration
- extends Object
- implements Enumeration, Serializable
This represents an ordered list of modification items.
- See Also:
- ModificationItem
-
ModificationEnumeration()
-
-
append(int, Attribute)
- Appends a new modification to this modification enumeration.
-
getModificationItemCount()
- Returns the number of modifications in this enumeration.
-
hasMoreElements()
- Determines whether there are any items left to enumerate.
-
next()
- Returns the next modification item in this enumeration.
-
nextElement()
- Returns the next modification item in this enumeration.
ModificationEnumeration
public ModificationEnumeration()
append
public void append(int mod_op,
Attribute attr)
- Appends a new modification to this modification enumeration.
- Parameters:
- mod_op - Modification to apply. It must be one of
DSContext.ADD_ATTRIBUTE
DSContext.REPLACE_ATTRIBUTE
DSContext.DELETE_ATTRIBUTE
- attr - Attribute to use for modification.
next
public ModificationItem next()
- Returns the next modification item in this enumeration.
If this is the first invocation of next() or nextElement(),
returns the item at the beginning of the enumeration.
- Returns:
- The next modification item in this enumeration.
hasMoreElements
public boolean hasMoreElements()
- Determines whether there are any items left to enumerate.
- Returns:
- true if there are more items to enumerate; false otherwise.
nextElement
public Object nextElement()
- Returns the next modification item in this enumeration.
If this is the first invocation of next() or nextElement(),
returns the item at the beginning of the enumeration.
- Returns:
- The next modification item in this enumeration.
getModificationItemCount
public int getModificationItemCount()
- Returns the number of modifications in this enumeration.
- Returns:
- The number of modifications in this enumeration.
All Packages Class Hierarchy This Package Previous Next Index